﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using Enter.Config;

namespace Enter.Mvc.Mall.Model.Product
{
    public class PropertyModel
    {
        public enum EnumchooseType : byte
        {
            //
            /// <summary>
            /// 单选
            /// </summary>
            [Description("单选")]
            Radio = 1,
            /// <summary>
            /// 多选
            /// </summary>
            [Description("多选")]
            Multiple = 2,

            /// <summary>
            /// 无效
            /// </summary>
            [Description("输入")]
            Input = 3
        }

        /// <summary>
        /// 
        /// </summary>
        public string PNo
        { get; set; }
        /// <summary>
        /// 属性名称
        /// </summary>
        public string PName
        { get; set; }

       
        /// <summary>
        /// 必填
        /// </summary>
        public bool IsRequired
        { get; set; }
       
        /// <summary>
        /// 1 单选、2多选、3 输入
        /// </summary>
        public EnumchooseType chooseType
        { get; set; }
        /// <summary>
        /// 属性类型
        /// </summary>
        public EnumProductPorpertyType PorpertyType
        { get; set; }
    }
    public class PropertyValueModel
    {
        /// <summary>
        /// 
        /// </summary>
        public string VNO
        { get; set; }
        /// <summary>
        /// 属性编码
        /// </summary>
        public string PNo
        { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        public string VName
        { get; set; }
        /// <summary>
        /// 是否被选中
        /// </summary>
        public bool Selected
        { get; set; }
        /// <summary>
        /// 颜色
        /// </summary>
        public string Color
        { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string Href
        { get; set; }
    }

    public class Property_Value
    {
        public PropertyModel PropertyName
        { get; set; }
        public List<PropertyValueModel> PropertyValues
        { get; set; }
    }
}
